import { createRouter, createWebHistory } from 'vue-router';
import Main from '../components/Main.vue'
import MainApp from '../components/MainApp.vue';

const routes = [
    {
        path:'/',
        redirect:'/mainApp',
    },
    {
        path:'/mainApp',
        name:'MainApp',
        component: MainApp,
    },
    {
        path: '/main',
        name: 'Main',
        component: Main,
    },
];

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes,
});

export default router;
